﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;

namespace Swimj.AspNetCore.Mvc
{
    [Authorize]
    [ApiController]
    public abstract class SecurityController : ControllerBase
    {
        [NonAction]
        protected virtual CustomFileResult CustomFile(Stream fileStream, string fileName) =>
            new CustomFileResult(fileStream, fileName);
    }
}